package site.jlopen.service.intf.node;

import java.util.List;

import site.jlopen.domain.node.event.KusciaNodeRouteEvent;
import site.jlopen.entity.BaseResponse;
import site.jlopen.entity.node.RouteSearchResult;

public interface NodeRouteService {

	/**
	 * 0绑定关系、1实时绑定
	 */
	public BaseResponse<String> bind(Long userId, Long srcNodeId, Long dstNodeId, int bindType);

	public List<KusciaNodeRouteEvent> list(Long userId);

	public BaseResponse<String> unbind(Long routeId);

	public BaseResponse<String> restatus(Long routeId);

	public BaseResponse<String> delRoute(Long routeId);

	public BaseResponse<RouteSearchResult> search(Long srcNode, Long dstNode);

}
